package twentyThreePattern.StructuralPattern7.proxy.DynamicProxy.section1;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;

public class DynamicProxy<T> {
	public static <T> T newInstance(ClassLoader loader, Class<?>[] interfaces, InvocationHandler h) {
		T newInstance =  (T)Proxy.newProxyInstance(loader, interfaces, h);
		return newInstance;
	}

}
